code for pyramid star pattern